package com.itheima.d3_transform_stream;

import java.io.*;
import java.util.zip.InflaterOutputStream;

public class InputStreamReaderTest1 {
    public static void main(String[] args) {
        try(
                InputStream is=new FileInputStream("C:\\Users\\dell\\IdeaProjects\\file-io-app\\io-app2\\src\\itheima06.txt");
                Reader isr=new InputStreamReader(is,"GBK");
                BufferedReader br=new BufferedReader(isr);
                ){
            String line;
            while( (line= br.readLine())!=null){
                System.out.println(line);
            }

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
